From 1465461c2ab043a6c18ea04aa2db372da2f3c9a6 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 8 Jan 2004 03:29:24 +0000 Subject: [PATCH] Don't prefer empty notes. --- gpsbabel/gpx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/gpx.c b/gpsbabel/gpx.c index 95c3be0e7..c989e74df 100644 --- a/gpsbabel/gpx.c +++ b/gpsbabel/gpx.c @@ -963,7 +963,7 @@ gpx_waypt_pr(const waypoint *waypointp) } write_optional_xml_entity(ofd, " ", "name", oname); write_optional_xml_entity(ofd, " ", "cmt", waypointp->description); - if (waypointp->notes) + if (waypointp->notes && waypointp->notes[0]) write_xml_entity(ofd, " ", "desc", waypointp->notes); else write_optional_xml_entity(ofd, " ", "desc", waypointp->description); -- 2.30.2